using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace InterfaceToPropertyGrid
{
    public class Shelf : BizBase, InterfaceToPropertyGrid.IShelf
    {
        public Shelf()
        {
            Size = new Dimension3D();
        }

        public override string ToString()
        {
            if (Name != null)
                return Name;
            else
                return ToString();
        }

        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _model;

        public string Model
        {
            get { return _model; }
            set { _model = value; }
        }

        private Dimension3D _dimension;
        
        
        public Dimension3D Size
        {
            get { return _dimension; }
            set { _dimension = value; }
        }

    }
}
